--编写者：alt
--功能介绍：去除san的滤镜影响
--使用方法：直接粘贴到模组环境 需要修改herta为对应的人物tag

--黑塔不会受san的滤镜影响
AddComponentPostInit("playercontroller", function(self, inst)
    if inst ~= ThePlayer then return end
    if not ThePlayer:HasTag("herta") then return end
    local sanity_cc_idx = 1
    local lunacy_cc_idx = 2
    local PostProcessor_mt = getmetatable(PostProcessor)

    local PostProcessorSetColourCubeLerp = PostProcessor_mt.__index.SetColourCubeLerp
    PostProcessor_mt.__index.SetColourCubeLerp = function(self, channel, blend_amount)
        if channel == sanity_cc_idx then
            blend_amount = 0
        elseif channel == lunacy_cc_idx then
            blend_amount = 0
        end
        PostProcessorSetColourCubeLerp(self, channel, blend_amount)
    end
    PostProcessor:SetDistortionFactor(1)
    PostProcessor_mt.__index.SetDistortionFactor = function()
    end
    PostProcessor:SetOverlayBlend(0)
    PostProcessor_mt.__index.SetOverlayBlend = function()
    end
end)